/**
 * Created by gxx on 2016/1/28.
 */
app.filter('splitDate', [function() {
    return function(num,a,b,c){
        year=num.slice(0,4);
        mouth=num.slice(5,7);
        day=num.slice(8,10);
        var newNum={
            year:year,
            mouth:mouth,
            day:day
        }
        if(!a){
            if(!b){
               return newNum.day.slice(0,1)==0 ? newNum.day.slice(1,2) : newNum.day
            }
            return newNum.mouth.slice(0,1)==0?newNum.mouth.slice(1,2):newNum.mouth
        }
        return newNum.year
    }
}])